// ListViewPage.qml
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

ScrollView {
    clip: true
    property var stackView

    ListView {
        clip: true
        model: heartbeatModel
        delegate: HeartbeatCard {
            robotType: model.robotType ?? ""
            robotId: model.robotId ?? ""
            isOnline: model.isOnline ?? false
            status: model.status ?? ""
            battery: model.battery ?? ""
            robotIP: model.robotIP ?? ""
            seerIP: model.seerIP ?? ""
            cameraUrl: model.cameraUrl ?? ""
            capabilities: model.capabilities ?? []
        }
    }
}
